<!DOCTYPE html>
<html>
<head>
<title>Warcraft 3 Frames - SetPoint</title>
</head>
<body>
<h2>SetPoint</h2>
<p>格式 SetPoint FramePoint-Own, FrameName , FramePoint-FrameName, xOffset , yOffset,</p>
<p>例子 SetPoint LEFT, "UpperButtonBarAlliesButton", RIGHT, 0, 0,</p>
<p>例子 SetPoint TOPLEFT, "InfoPanelIconAllyWoodIcon", BOTTOMLEFT, 0.0, 0.0, </p>
<p>作用: Pos the frame with its own FramePoint to FramePoint-FrameName with xOffset and yOffset (+x is right +y is up), <a href="UseActiveContext.html">UseActiveContext</a> can alter the result. When the Frame is created the Frame basicly calls BlzFrameSetPoint(self, FramePoint-Own, BlzGetFrameByName(FrameName, 0), FramePoint-FrameName, x, y). When having UseActiveContext, in the frame with SetPoint it replaces 0 inside BlzGetFrameByName with the CreationContext of the current create Frame.</p>
<p>应用: EveryWhere</p>
</body>
</html>
